﻿using System;
using System.Runtime.InteropServices;

namespace CSW.Framework.Windows.Win32API
{
    public static partial class Win32
    {
        /// <summary>
        /// SHGetFileInfo
        /// </summary>
        /// <param name="pszPath">The path of the file or directory.</param>
        /// <param name="dwFileAttributes">The file attributes.</param>
        /// <param name="psfi">The SHFILEINFO.</param>
        /// <param name="cbSizeFileInfo">The size file info.</param>
        /// <param name="uFlags">The flags.</param>
        /// <returns></returns>
        [DllImport("shell32.dll", EntryPoint = "SHGetFileInfo", CallingConvention = CallingConvention.StdCall)]
        public static extern IntPtr SHGetFileInfo(String pszPath,
                                             UInt32 dwFileAttributes,
                                             ref SHFILEINFO psfi,
                                             UInt32 cbSizeFileInfo,
                                             UInt32 uFlags);
    }
}
